package org.zfes.snowier.cloud.zbss.layer.tc.biz.auth;

import javax.servlet.http.HttpServletRequest;

import org.springframework.util.AntPathMatcher;

public class PathMach {
	
	private static AntPathMatcher  pathMatcher=new AntPathMatcher();
	
	public static boolean pathsMatch(String pattern, HttpServletRequest request) {
	        String requestURI = request.getRequestURI();
	        return pathsMatch(pattern , requestURI);
	 }
	public static boolean pathsMatch(String pattern, String url) {
	        return pathMatcher.match(pattern, url);
	  }
}
